package com.tedu.pj.common.advisor;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * <p>
 *
 * </p>
 *
 * @author Song
 * @since 2020/10/22
 */
public class LogAdvice implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println(System.nanoTime());
        Object result= invocation.proceed();
        System.out.println(System.nanoTime());
        return result;
    }
}
